import request from "../utils/request.js"

export function area(data){
	return request({
		url: "/area",
		method: "post",
		data
	})
}

export function getPhone(data){
	return request({
		url: "/getPhone",
		method: "get",
		data
	})
}

export function userauth(data){
	return request({
		url: "/user/auth",
		method: "post",
		data
	})
}

export function pay(data){
	return request({
		url: "/pay",
		method: "post",
		data
	})
}


export function userinfo(data){
	return request({
		url: "/user/info",
		method: "post",
		data
	})
}


export function borrow(data){
	return request({
		url: "/borrowBook",
		method: "post",
		data
	})
}
export function borrowlist(data){
	return request({
		url: "/borrowlist",
		method: "post",
		data
	})
}